<?php


namespace plugin\coleopenapi\exception;



use Exception;

class OpenApiException extends Exception
{
    const METHOD_PARAM_ERROR = 10000;
    const METHOD_NOT_FOUND_ERROR = 10001;
    const ACTION_NOT_FOUND_ERROR = 10002;
    const API_NOT_AUTH_ERROR = 10003;//接口没有授权
    const APP_NOT_AUTH_ERROR = 10004;//应用没有授权
    const IP_NOT_WHITE_ERROR = 10005;//IP没有在白名单
    const PARSER_CONTROLLER_ERROR = 10006;//解析对应的控制器错误
    const APP_DISABLE_ERROR = 10007;//当前应用已经禁用
    const APP_EXPIRED_ERROR = 10008;//当前应用已过期
    const RATE_LIMIT_ERROR = 90001; //限流
    const FORBID_ERROR = 90002; //禁止访问
}